package com.zaofan.bean;

import java.math.BigDecimal;

import com.zaofan.annotation.AutoIncrement;

public class OrderDetail {
	@AutoIncrement
	private int id;
	private int orderId;
	private String orderNo;
	private int productId;
	private BigDecimal productPrice;
	private int productCount;
	private String productName;
	private BigDecimal free;
	private int isActivity;
	private String attributeInfo;
	private String attributeIds;
	private int shopId;
	private int categoryId;
	private String categoryName;
	private String productImage;
	private BigDecimal totalPrice;
	private String activityId;
	private String activityName;
	private int parentOrderId;
	private String shopName;
	private String sendDate;
	private Integer productClassId;

	public Integer getProductClassId() {
		return productClassId;
	}

	public void setProductClassId(Integer productClassId) {
		this.productClassId = productClassId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSendDate() {
		return sendDate;
	}

	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public BigDecimal getProductPrice() {
		return productPrice;
	}

	public void setProductPrice(BigDecimal productPrice) {
		this.productPrice = productPrice;
	}

	public int getProductCount() {
		return productCount;
	}

	public void setProductCount(int productCount) {
		this.productCount = productCount;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public BigDecimal getFree() {
		return free;
	}

	public void setFree(BigDecimal free) {
		this.free = free;
	}

	public int getIsActivity() {
		return isActivity;
	}

	public void setIsActivity(int isActivity) {
		this.isActivity = isActivity;
	}

	public String getAttributeInfo() {
		return attributeInfo;
	}

	public void setAttributeInfo(String attributeInfo) {
		this.attributeInfo = attributeInfo;
	}

	public int getShopId() {
		return shopId;
	}

	public void setShopId(int shopId) {
		this.shopId = shopId;
	}

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getProductImage() {
		if (productImage == null) {
			return null;
		}
		return productImage.startsWith("http") ? productImage : "http://static.52letsgo.cn/" + productImage;
	}

	public void setProductImage(String productImage) {
		this.productImage = productImage;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public int getParentOrderId() {
		return parentOrderId;
	}

	public void setParentOrderId(int parentOrderId) {
		this.parentOrderId = parentOrderId;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getAttributeIds() {
		return attributeIds;
	}

	public void setAttributeIds(String attributeIds) {
		this.attributeIds = attributeIds;
	}
	
	
	
}
